import type { SlateElement } from '@wangeditor-next/editor';

export type InsertImageFnType = (url: string, alt: string, href: string) => void;
export type InsertVideoFnType = (url: string, poster: string) => void;
export type ImageElement = SlateElement & {
  src: string;
  alt: string;
  url: string;
  href: string;
};
export type VideoElement = SlateElement & {
  src: string;
  poster?: string;
};
